package com.luo.service.impl;

import com.luo.dao.orderDao;
import com.luo.service.orderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class orderServiceImpl implements orderService {
    private orderDao orderDao;

    @Autowired
//    @Qualifier("orderDaoImpl") //方案一使用 @Qualifier("orderDaoImpl") 指定 Bean
//    @Qualifier("orderNewDaoImpl") //方案一使用 @Qualifier("orderNewDaoImpl") 指定 Bean
    public void setOrderDao(orderDao orderDao) {
        this.orderDao = orderDao;
    }

    @Override
    public void getOrder() {
        orderDao.getOrder();
    }
}
